<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>工作经历</h3>
		<div id="div1">
			
		</div>
		<a href="#" style="float: right;" onclick="add()">添加工作经历</a>
	</body>
	<script type="text/javascript">
		function add(){
			var div1obj=document.getElementById('div1')
			var divdiv2=document.createElement('div')
			divdiv2.id='div2'
			divdiv2.innerHTML+=`
			<hr >
			公司名称:<input type="text" name="" id="" value="" />
			职位:<input type="text" name="" id="" value="" />
			<a href="#" onclick="serson()" id="id">删除工作经历</a>
			<br />
			<table>
			<tr>
				<td align="center">工作职责及工作内容描述：</td>				
				<td><textarea rows="6" cols="90">
				</textarea></td>
				</tr>
			</table>
			<hr >	
			`;
			div1obj.appendChild(divdiv2)
		}
		function serson(){
			var a=document.getElementById('div1')
			var b=document.getElementById('div2')
			a.removeChild(b)
		}
	</script>
</html>
